package com.gimi.cloud.bbp.app.consumer.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.gimi.cloud.bbp.dto.base.BaseDTO;
import com.gimi.cloud.bbp.dto.mall.MallAppSpecialDTO;
import com.gimi.cloud.bbp.dto.mall.MallAppSpecialGroupDTO;
import com.gimi.cloud.bbp.dto.page.PageConfigDTO;

import feign.Headers;

/**
 * Created by shazhiwei on 2017/12/27.
 */
@FeignClient(name = "bbp-app-service")
public interface HomePageFeignService {

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/columnList", method = RequestMethod.POST)
    String columnList(@RequestBody BaseDTO param);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/majorAdList", method = RequestMethod.POST)
    String adList(@RequestBody BaseDTO param);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/pageConfig/getPage", method = RequestMethod.POST)
	String getPage(@RequestBody PageConfigDTO params);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/getHomePageCarouselFigure", method = RequestMethod.POST)
	String getHomePageCarouselFigure(@RequestBody BaseDTO parseObject);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/getHomePageData", method = RequestMethod.POST)
	String getHomePageData(BaseDTO parseObject);
    
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/getIndex", method = RequestMethod.POST)
	String getIndex(MallAppSpecialGroupDTO dto);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "homePage/getSpecialList", method = RequestMethod.POST)
	String getSpecialList(MallAppSpecialDTO dto);
    
}
